Leak fix during tension of object being both a class and a global...
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 29 Sep 2014 03:00:51 +0000 (03:00 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 29 Sep 2014 03:00:51 +0000 (03:00 +0000)
gpsbabel/csv_util.cc
gpsbabel/g7towin.cc
gpsbabel/xcsv_tokens.gperf

index 9915f9b6e2b36994213b2b218095a4e41afba1e0..b7c39e035ad81d4057e0c54e9b20134da433e152 100644 (file)
@@ -754,7 +754,7 @@ void xcsv_file_init(void)
 }
 
 XcsvFile::XcsvFile() {
-   xcsv_file_init(); 
+//   xcsv_file_init(); 
 }
 
 void validate_fieldmap(field_map_t* fmp, bool is_output) {
index e2f13e263295954a4417890fdff8b1950690bc4c..7df56a125a805b8f9d104c342352525de76dd040 100644 (file)
@@ -410,7 +410,6 @@ data_read(void)
   char* buff;
   int line = 0;
   Waypoint* wpt = NULL;
-  Waypoint* prev = NULL;
   route_head* head = NULL;
 
   while ((buff = gbfgetstr(fin))) {
@@ -483,7 +482,6 @@ data_read(void)
     case 'P': /* proximity waypoint */
     case 'W': /* normal waypoint */
       wpt = parse_waypt(cin + 3);
-      prev = wpt;
       if (wpt) {
         if (mode == rtedata) {
           route_add_wpt(head, wpt);
index b650d5b75f448681d1c8231a81c484e82b761a42..c57b0edb12dfcd2bb60954d18605a0fb217dfdeb 100644 (file)
@@ -1,4 +1,4 @@
-/* ANSI-C code produced by gperf version 3.0.3 */
+/* ANSI-C code produced by gperf version 3.0.4 */
 /* Command-line: gperf --output-file=xcsv_tokens.gperf -L ANSI-C -D -t xcsv_tokens.in  */
 /* Computed positions: -k'2,4-5,12,$' */
 
@@ -107,7 +107,7 @@ hash (register const char *str, register unsigned int len)
 
 #ifdef __GNUC__
 __inline
-#ifdef __GNUC_STDC_INLINE__
+#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
 __attribute__ ((__gnu_inline__))
 #endif
 #endif